package org.example.workbench.service.impl;

import org.example.workbench.domain.activity;
import org.example.workbench.mapper.activityMapper;
import org.example.workbench.service.ActivityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service("activityService")
public class ActivityImpl implements ActivityService {
    @Autowired
    private activityMapper mapper;

    @Override
    public List<activity> getActivityNotConnectContactsId(Map<String, Object> map) {
        return mapper.getActivityNotConnectContactsId(map);
    }

    @Override
    public List<activity> getActivityByContactsId(String contactsId) {
        return mapper.getActivityByContactsId(contactsId);
    }

    @Override
    public List<activity> getActivityByClueIdAndNameToConvert(Map<String, Object> map) {
        return mapper.getActivityByClueIdAndNameToConvert(map);
    }

    @Override
    public List<activity> getActivityByClueIdAndName(Map<String, Object> map) {
        return mapper.getActivityByClueIdAndName(map);
    }

    @Override
    public List<activity> getActivityByClueId(String id) {
        return mapper.getActivityByClueId(id);
    }

    @Override
    public activity selectActivityIntoRemark(String id) {
        return mapper.selectActivityIntoRemark(id);
    }

    @Override
    public int insertActivityFromExcel(List<activity> activityList) {
        return mapper.insertActivityFromExcel(activityList);
    }

    @Override
    public List<activity> selectSomeActivityIntoExcel(String[] ids) {
        return mapper.selectSomeActivityIntoExcel(ids);
    }

    @Override
    public List<activity> selectActivityIntoExcel() {
        return mapper.selectActivityIntoExcel();
    }

    @Override
    public int updateActivity(activity activity) {
        return mapper.updateActivity(activity);
    }

    @Override
    public activity findOneActivityById(String id) {
        return mapper.findOneActivityById(id);
    }

    @Override
    public int deleteActivityByIds(String[] ids) {
        return mapper.deleteActivityByIds(ids);
    }

    @Override
    public List<activity> activityList(Map<String,Object> map) {
        return mapper.selectActivities(map);
    }

    @Override
    public int getTotalCount(Map<String,Object> map) {
        return mapper.getTotalCounts(map);
    }

    @Override
    public int insertActivity(activity activity) {
        return mapper.insertActivity(activity);
    }
}
